package homework02.test02;

public class PhoneTest {

    public static void main(String[] args) {

        OldPhone oldPhone = new OldPhone("摩托罗拉", "黑色", 200.0);
        System.out.println(oldPhone.getBrand() + "的价格是:" + oldPhone.getPrice());
        System.out.println(oldPhone.getBrand() + "的颜色是:" + oldPhone.getColor());
        oldPhone.show();
        oldPhone.setBrand("诺基亚");
        oldPhone.setColor("白色");
        oldPhone.setPrice(300.0);
        oldPhone.show();
        System.out.println("-----------------------");

        NewPhone newPhone = new NewPhone("苹果", "白色", 8000.0);
        newPhone.show();
        newPhone.playGame();
        System.out.println("手机的牌子是:" + newPhone.getBrand());
        System.out.println("手机的颜色是:" + newPhone.getColor());
        System.out.println("手机的价格是:" + newPhone.getPrice());
        newPhone.setBrand("华为Mate50");
        newPhone.setColor("黑色");
        newPhone.setPrice(6999.0);
        newPhone.show();
        newPhone.playGame();
    }
}
